package com.ai.bitcoin.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WeiXinConfig {

    //获取普通token
    public static String ACCESS_TOKEN;

    public static String CUSTOM_MSG;

    public static String PRE_ORDER;

    //获取网页授权tokenurl
    public static String GET_AUTH_TOKEN;

    public static String USER_INFO_URL;

    public static String MENU_CREATE;

    public static String SIGNATURE_URL;

    public static String TEMPLATE_MSG_URL;

    public static String QRCODE_TICKET_URL;

    public static String QRCODE_PIC_URL;

    public static String UPLOAD_PIC_URL;

    public static String UPLOAD_FOREVER_PIC_URL;

    //template id
    public static String COIN_REPORT_TEMPLATE_ID;

    @Value("${wechat.forever.upload.pic}")
    public void setUploadForeverPicUrl(String uploadForeverPicUrl) {
        UPLOAD_FOREVER_PIC_URL = uploadForeverPicUrl;
    }

    @Value("${wechat.upload.pic}")
    public void setUploadPicUrl(String uploadPicUrl) {
        UPLOAD_PIC_URL = uploadPicUrl;
    }

    @Value("${wx.coin.report.template.id}")
    public void setCoinReportTemplateId(String coinReportTemplateId) {
        COIN_REPORT_TEMPLATE_ID = coinReportTemplateId;
    }

    @Value("${wechat.pre.order}")
    public void setPRE_ORDER(String pRE_ORDER) {
        PRE_ORDER = pRE_ORDER;
    }

    @Value("${wechat.template.msg.url}")
    public void setTEMPLATE_MSG_URL(String tEMPLATE_MSG_URL) {
        TEMPLATE_MSG_URL = tEMPLATE_MSG_URL;
    }

    @Value("${wechat.jsapiticket.url}")
    public void setSIGNATURE_URL(String sIGNATURE_URL) {
        SIGNATURE_URL = sIGNATURE_URL;
    }

    @Value("${wechat.menu.create}")
    public void setMENU_CREATE(String mENU_CREATE) {
        MENU_CREATE = mENU_CREATE;
    }

    @Value("${wechat.gettoken.url}")
    public void setACCESS_TOKEN(String aCCESS_TOKEN) {
        ACCESS_TOKEN = aCCESS_TOKEN;
    }

    @Value("${wechat.custom.send.url}")
    public void setCUSTOM_MSG(String cUSTOM_MSG) {
        CUSTOM_MSG = cUSTOM_MSG;
    }

    @Value("${wechat.get.authtoken}")
    public void setGET_AUTH_TOKEN(String gET_AUTH_TOKEN) {
        GET_AUTH_TOKEN = gET_AUTH_TOKEN;
    }

    @Value("${wechat.user.info}")
    public void setUSER_INFO_URL(String uSER_INFO_URL) {
        USER_INFO_URL = uSER_INFO_URL;
    }

    @Value("${wechat.qrcodeticket.url}")
    public void setQrcodeTicketUrl(String qrcodeTicketUrl) {
        QRCODE_TICKET_URL = qrcodeTicketUrl;
    }

    @Value("${wechat.qrcodepic.url}")
    public void setQrcodePicUrl(String qrcodePicUrl) {
        QRCODE_PIC_URL = qrcodePicUrl;
    }
}
